<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>部门添加</title>
    <link rel="stylesheet" href="/static/css/element-ui/element-ui.css">
    <link rel="stylesheet" href="/static/css/summernote/summernote-lite.css">
    <link rel="stylesheet" href="/static/css/public.css">
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/js/summernote/summernote-lite.min.js"></script>
    <script src="/static/js/summernote/lang/summernote-zh-CN.js"></script>
    <script src="/static/js/layer/layer.js"></script>
    <script src="/static/js/vue.min.js"></script>
    <script src="/static/js/element-ui.js"></script>
    <script src="/static/js/public.js"></script>
</head>
<body>
<div v-cloak id="app">
    <el-page-header @back="closeDialog" content="部门添加"></el-page-header>
    <i class="el-icon-close close-btn" @click="closeDialog"></i>
    <div class="mt-55 plr-15">
        <el-input class="mb-15" size="medium" placeholder="请输入部门名称" v-model="dept.name">
            <template slot="prepend">部门名称</template>
        </el-input>
        <div class="mb-15 input-group-container">
            <span class="input-prepend">部门管理员</span>
            <el-select size="medium" class="w-50" v-model="userIds" multiple placeholder="请选择">
                <el-option
                        v-for="obj in userList"
                        :key="obj.id"
                        :label="obj.nickname"
                        :value="obj.id">
                </el-option>
            </el-select>
            <span class="ml-15 fs-12 text-red">注意： 部门管理员只能选择【系统管理员】角色的用户，可以选择多个</span>
        </div>

        <div id="summernote"></div>
        <div class="text-right mt-10">
            <el-button type="primary" size="medium" :loading="isLoading" @click="saveContent">保存内容</el-button>
        </div>
    </div>
    <input type="hidden" value="${id}" id="id">
</div>
<script src="/static/app/system/dept_add_update.js"></script>
</body>
</html>
